#define _CRT_SECURE_NO_WARNINGS 1

int convertInteger(int A, int B)
{
    int count_change = 0;
    int n = 1;
    for (int i = 0; i < 32; i++)
    {
        if ((1 & A) != (1 & B))
        {
            ++count_change;
        }
        A >>= 1;
        B >>= 1;
    }
    return count_change;
}